/**
 * Created by Administrator on 2018/1/16.
 */
//点赞操作
function upvotes(listid,obj) {
    $.post({
        url:upvotesurl,
        data:{"id":listid},
        headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') },
        dataType: "json",
        success:function (res) {
            if(res.status == 1){
                var num = $(obj).siblings("span").html();
                $(obj).siblings("span").html(parseInt(num)+1);
            }else{
                layer.msg('点赞失败！');
            }
        }
    })
}